// 日志中间件
function logger(req, res, next) {
    const time = Date()
    console.log(`${time.toLocaleString()} ${req.method} ${req.url}`)
    next()
}

module.exports = logger